package com.example.api.service;

import com.example.api.model.entity.InventoryRecord;
import com.example.api.model.support.RespBean;
import com.example.api.model.vo.CommodityChartVo;

import java.util.List;

public interface InventoryRecordService {

    //出入库排行统计
    List<CommodityChartVo> analyzeCommodity(Integer type);

    List<InventoryRecord> findAllByWarehouseId(Integer wid);

    List<InventoryRecord> findAllByCommodityId(Integer cid);

    //出库
    RespBean out(InventoryRecord record);

    //入库
    RespBean in(InventoryRecord record);

}